<script setup>
import HelloWord from "@/components/hello-world.vue";
import { defineComponent } from "vue";
import { getUserInfo } from "@/api/user";

const sendReq = async () => {
  const { data } = await getUserInfo();
  console.log(data);
};
</script>

<script>
export default defineComponent({
  data() {
    return {};
  },
  methods: {},
});
</script>

<template>
  <HelloWord msg="Hello Vue 3 + Vite" />
  <a-button @click="sendReq">点我发送请求</a-button>
</template>
